package com.ruoyi.equ.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报废记录对象 equ_scrap
 * 
 * @author ruoyi
 * @date 2025-11-05
 */
public class EquScrap extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报废申请id */
    @Excel(name = "报废申请id")
    private Long scrapId;

    /** 资产设备id */
    @Excel(name = "资产设备id")
    private Long assetId;

    /** 报废依据 */
    @Excel(name = "报废依据")
    private String scrapBasis;

    /** 审核汇总 */
    @Excel(name = "审核汇总")
    private String approvalSummary;

    /** 处置信息（格式：处置方式+处置单位+日期+备案/资质编号，如“销毁+XX环保公司+2025-01-20+WS-BF-2025-001”） */
    @Excel(name = "处置信息", readConverterExp = "格=式：处置方式+处置单位+日期+备案/资质编号，如“销毁+XX环保公司+2025-01-20+WS-BF-2025-001”")
    private String disposalInfo;

    /** 正式报废日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "正式报废日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scrapDate;

    /** 台账保留期限 */
    @Excel(name = "台账保留期限")
    private Long keepPeriod;

    /** 附件链接 */
    @Excel(name = "附件链接")
    private String fileUrls;

    public void setScrapId(Long scrapId) 
    {
        this.scrapId = scrapId;
    }

    public Long getScrapId() 
    {
        return scrapId;
    }

    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }

    public void setScrapBasis(String scrapBasis) 
    {
        this.scrapBasis = scrapBasis;
    }

    public String getScrapBasis() 
    {
        return scrapBasis;
    }

    public void setApprovalSummary(String approvalSummary) 
    {
        this.approvalSummary = approvalSummary;
    }

    public String getApprovalSummary() 
    {
        return approvalSummary;
    }

    public void setDisposalInfo(String disposalInfo) 
    {
        this.disposalInfo = disposalInfo;
    }

    public String getDisposalInfo() 
    {
        return disposalInfo;
    }

    public void setScrapDate(Date scrapDate) 
    {
        this.scrapDate = scrapDate;
    }

    public Date getScrapDate() 
    {
        return scrapDate;
    }

    public void setKeepPeriod(Long keepPeriod) 
    {
        this.keepPeriod = keepPeriod;
    }

    public Long getKeepPeriod() 
    {
        return keepPeriod;
    }

    public void setFileUrls(String fileUrls) 
    {
        this.fileUrls = fileUrls;
    }

    public String getFileUrls() 
    {
        return fileUrls;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scrapId", getScrapId())
            .append("assetId", getAssetId())
            .append("scrapBasis", getScrapBasis())
            .append("approvalSummary", getApprovalSummary())
            .append("disposalInfo", getDisposalInfo())
            .append("scrapDate", getScrapDate())
            .append("keepPeriod", getKeepPeriod())
            .append("fileUrls", getFileUrls())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
